package com.bruce.pattern.behavioral.command;

import lombok.extern.slf4j.Slf4j;

/**
 * Created by bruce on 2018/11/11 1:11
 */
@Slf4j
public class OpenCourseVideoCommand implements Command {

    private CourseVideo courseVideo;

    public OpenCourseVideoCommand(CourseVideo courseVideo) {
        this.courseVideo = courseVideo;
    }

    @Override
    public void execute() {
        courseVideo.open();
    }
}
